﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.DataBase.MyProject.Domain.SmartHealthcareZSJ
{
    public class HospitalDepartmentZ
    {
        /// <summary>
        /// 科室唯一标识编号
        /// </summary>
        [Key]

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int DepartmentId { get; set; }

        /// <summary>
        /// 科室名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 科室级别（如：一级科室、二级科室）
        /// </summary>
        public string? Level { get; set; }

        /// <summary>
        /// 科室状态（如：正常、暂停服务、扩建中）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 科室备注信息
        /// </summary>
        public string Remarks { get; set; }

        /// <summary>
        /// 上传科室信息的用户
        /// </summary>
        public string Uploader { get; set; }

        /// <summary>
        /// 科室信息添加时间
        /// </summary>
        public DateTime CreateTime { get; set; }=DateTime.Now;

        /// <summary>
        /// 创建科室记录的用户标识
        /// </summary>
        public string CreateName { get; set; }
        /// <summary>
        /// 科室父级编号
        /// </summary>
        public int? ParentId { get; set; }
        /// <summary>
        /// 科室级别编号
        /// </summary>
        public int? LevelId { get; set; }
        /// <summary>
        /// 删除记录时的操作标识（逻辑删除使用）
        /// </summary>
        public int DeleteId { get; set; }
    }
}
